<?php 
/* SVN FILE: $Id$ */
/* Versiculo Test cases generated on: 2009-01-05 23:01:58 : 1231206838*/
App::import('Model', 'Versiculo');

class VersiculoTestCase extends CakeTestCase {
	var $Versiculo = null;
	var $fixtures = array('app.versiculo', 'app.capitulo');

	function startTest() {
		$this->Versiculo =& ClassRegistry::init('Versiculo');
	}

	function testVersiculoInstance() {
		$this->assertTrue(is_a($this->Versiculo, 'Versiculo'));
	}

	function testVersiculoFind() {
		$this->Versiculo->recursive = -1;
		$results = $this->Versiculo->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Versiculo' => array(
			'id'  => 1,
			'numero'  => 1,
			'texto'  => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida,phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam,vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit,feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
			'capitulo_id'  => 1
			));
		$this->assertEqual($results, $expected);
	}
}
?>